#include "rank.h"

void BubbleRank(FP32 *p , INT16U Length)
{
    INT16U ii = 0 , jj = 0;
    FP32 Temp = 0;

    for(ii = 0 ; ii < Length - 1 ; ii++)
    {
        for (jj = 0 ; jj < Length - 1 - ii ; jj++)
        {
            if (p[jj] > p [jj + 1])
            {
                Temp = p[jj];
                p[jj] = p[jj + 1];
                p[jj + 1] = Temp;
            }
        }
    }
}
